import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:prototype/theme/custom_theme.dart';

Widget customLoading() {

  return Container(
    height: 100.w,
    width: 100.w,
    decoration: BoxDecoration(
      color: CustomTheme.colorSchema.loadingBG,
      borderRadius: BorderRadius.all(
        Radius.circular(8.w),
      ),
      border: Border.all(
        width: 1,
        color: CustomTheme.colorSchema.borderColor,
      ),
      boxShadow: const [
        BoxShadow(
          color: Color.fromRGBO(0, 0, 0, 0.3),
          spreadRadius: 2,
          blurStyle: BlurStyle.outer,
          blurRadius: 20,
        )
      ]
    ),
    child: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Image.asset(
            'assets/images/logo/logo.png',
            width: 50.w,
            height: 50.w,
          ),
          const SizedBox(
            height: 10,
          ),
          Text(
            'loading'.tr,
            style: const TextStyle(
              fontWeight: FontWeight.w700,
            ),
          ),
        ],
      ),
    ),
  );
}
